import { BrowserRouter as Router } from 'react-router-dom';
import { renderRoutes } from 'react-router-config';
import 'antd/dist/antd.min.css';
import { ConfigProvider } from 'antd';
import routes from './routes';
import antdConfig from './antdConfig';

function App() {
  console.log(routes);
  // console.log(anTdConfig);
  return (
    <>
      <ConfigProvider {...antdConfig} >
        <Router>
          {renderRoutes(routes)}
        </Router>
      </ConfigProvider>
    </>
  );
}

export default App;
